package com.cskaoyan.market.controller;

import com.cskaoyan.market.service.WxHomeService;
import com.cskaoyan.market.service.WxHomeService_fc;
import com.cskaoyan.market.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Author: 付诚
 * @Date: 2024/5/21 15:05
 * @Description:
 */
@RestController
//@RequestMapping("/wx/home")
public class WxHomeController_fc {

    @Autowired
    private WxHomeService_fc wxHomeService;
    @GetMapping ("/index")
    public Object index(){

        Map<String,Object> data = wxHomeService.index();
        return ResponseUtil.ok(data);
    }
}
